<div class="first_top">
    <a href="javascript:history.go(-1)"><span class="backImg"><img src="images/baijiantou.png"></span></a>
    <h class="first_title">订单详情</h>
</div>
<div class="orderdetails_top">
</div>
<div class="orderdetails_content1">订单详情</div>
<div class="margin-box1" ng-repeat="shop in vm.order.ordersShops">
    <ul class="orderdetails_content">
        <li>
            <span class="firmorder_guaipopo"><img ng-src="{{shop.shopLogo?shops.shopLogo:'http://sfs.shuwang.info/sfcommon/1001/2017-07-19/6s4YIw9oL-diancan.jpg'}}"/>
                <span style="margin-left: 5px;font-size: 16px;font-weight: 600;">{{shop.shopName}}</span>
            </span>
            <img class="orderdetails_huijiantou" src="images/huijiantou.png">
            <!--<span class="orderdetails_dispatching">商家配送</span>-->
        </li>
        <li ng-repeat="good in shop.ordersShopsGoods">
            <span class="firmorder_food ">
                <span>{{good.goodsName}}</span>
                <div class="sku_properties">{{good.skuProperties}}</div>
            </span>
            <span class="firmorder_foodmoney">¥{{good.fee*good.num}}</span>
            <span class="firmorder_number">×{{good.num}}</span>
        </li>
        <!--<div class="deliver_fee">
            <span>配送费</span>
            <span class="firmorder_psmoney">¥0</span>
        </div>-->
        <li ng-repeat="privilege in shop.privilegeList">
            <span ng-show="privilege.type==1">积分抵用</span>
            <span ng-show="privilege.type==2">满减优惠</span>
            <span ng-show="privilege.type==3">优惠券</span>
            <span class="firmorder_mjmoney colorRed">-¥{{privilege.onsale}}</span>
        </li>
        <li>
            <span class="firmorder_coupon">总计：¥{{vm.order.totalFee | number:2}}&nbsp&nbsp&nbsp优惠¥{{vm.order.totalFee-vm.order.payment}}</span>
            <span class="firmorder_couponmoney">实付：<span class="colorRed">¥{{vm.order.payment}}</span></span>
        </li>
    </ul>
</div>
<div class="orderdetails_content1"></div>
<div class="margin-box1">
    <ul class="orderdetails_content">
        <li>
            <span class="orderdetails_left" >订单号：</span>
            <span class="orderdetails_rights">{{vm.order.orderid}}</span>
        </li>
        <li>
            <span class="orderdetails_left">联系人：</span>
            <span class="orderdetails_rights">{{vm.order.receiverName}}</span>
        </li>
        <li ng-show="vm.order.receiverAddress">
            <span class="orderdetails_left">联系地址：</span>
            <span class="orderdetails_rights">{{vm.order.receiverAddress}}</span>
        </li>
        <li>
            <span class="orderdetails_left">联系电话：</span>
            <span class="orderdetails_rights">{{vm.order.receiverPhone}}</span>
        </li>
        <li>
            <span class="orderdetails_left">订单类型：</span>
            <span class="orderdetails_rights">{{vm.order.type|payTypeFilter}}</span>
        </li>
        <li>
            <span class="orderdetails_left" style="display:inline-block">订单备注：</span>
            <span class="orderdetails_rights" style="position:static">{{vm.order.buyMessage|byMessageFilter}}</span>
        </li>
    </ul>
</div>
<div class="unifyrefund">
    <button ng-show="vm.order.paystate==22||vm.order.paystate==21">正在退款</button>
    <button ng-show="vm.order.paystate==2&&vm.order.status==6">已退款</button>
    <button ng-click="vm.unifyrefund()" ng-show="vm.order.paystate==1&&(vm.order.status==1||vm.order.status==11)">申请退款</button>
    <button ng-click="vm.anotherOne(vm.order.ordersShops[0])" ng-show="vm.order.paystate!=0||(vm.order.paystate==0&&vm.order.status!=0)">再来一单</button>
</div>
<div class="loader color_white" id="loader" style="top:40px;background-color: #ffffff;">
    <div class="loader_bac"></div>
</div>
<div class="unifyrefund_html">
    <div class="address_top">
        <a ng-click="vm.dismiss()">
            <span class="backImg" style="color: #ffffff;">
                取消
            </span>
        </a>
        <span class="address_title">申请退款</span>
    </div>
    <div class="remark_body">
        <div data-v-018b083e="" class="viewbody">
            <section class="delivery checkout-section" style="border: 0;">
                <div class="delivery-left">
                    <span>退款原因</span>
                </div>
                <div class="delivery-select">
                    <select dir="rtl" name="选择配送时间" ng-model="vm.reason"
                            ng-options="reason.text for reason in vm.reasonList">
                        {{vm.reason.text}}
                    </select>
                </div>
            </section>
            <section data-v-018b083e="" style="position: relative;">
                <h3 data-v-018b083e="">退款说明</h3>
                <textarea data-v-018b083e="" placeholder="请输入退款说明(可不填)" maxlength="200" ng-model="vm.explain"></textarea>
                <span style="position: absolute;bottom: 0.2rem;right: 0.2rem;color: red;z-index: 10;">{{vm.explain?vm.explain.length:'0'}}/200</span>
            </section>

            <button data-v-018b083e="" class="btn-block submit" ng-click="vm.refund()">确定</button>
        </div>
    </div>
</div>
<div class="c-float-popWrap msgMode">
    <div class="pop-mask" style="opacity: 0;"></div>
    <div class="c-float-modePop">
        <div class="warnMsg">
        </div>
    </div>
</div>
